package com.glb.leetcode;

import java.util.Scanner;

public class HB_test {
  public static int  flippedBits(int num1, int num2)
	{
		int  answer = 0;
		// Write your code here
		int xor = num1 ^ num2;
		do {
			if ((xor & 1) == 1) {
				answer ++;
			}
			xor = xor >> 1;

		} while(xor!=0);
		
		return answer;
	}

	public static void main(String[] args)
	{
		Scanner in = new Scanner(System.in);
		// input for num1
		int num1 = in.nextInt();
		
		// input for num2
		int num2 = in.nextInt();
		
		
		int result = flippedBits(num1, num2);
		System.out.print(result);
		
	}
}
